<?php


namespace App\Commons\Domain\Module\System\Model;


use App\Commons\Domain\Core\Model;
use App\Commons\Domain\Module\UserCenter\Model\Member;


/**
 * App\Commons\Domain\Module\System\Model\Country
 *
 * @property int $id
 * @property \Illuminate\Support\Carbon $created_at
 * @property \Illuminate\Support\Carbon $updated_at
 * @property string $zh_name 中文名称
 * @property string $en_name 英文名
 * @property string $area_code 区号
 * @property string $language 语言
 * @property string $currency 货币单位
 * @property float $sort_num
 * @property-read \Illuminate\Database\Eloquent\Collection|Member[] $Members
 * @property-read int|null $members_count
 * @method static \Illuminate\Database\Eloquent\Builder|Country newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|Country newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|Country query()
 * @method static \Illuminate\Database\Eloquent\Builder|Country whereAreaCode($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Country whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Country whereCurrency($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Country whereEnName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Country whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Country whereLanguage($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Country whereSortNum($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Country whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Country whereZhName($value)
 * @mixin \Eloquent
 */
class Country extends Model
{
    /**
     * 地区成员
     * @return \Illuminate\Database\Eloquent\Relations\HasMany
     */
    public function Members()
    {
        return $this->hasMany(Member::class, 'country_id', 'id');
    }
}
